package com.wn.service;

import com.wn.service.bean.User;
import com.wn.service.other.WorkProduct;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author yellow Docter
 * @date 2022 -08-31
 * @desc  测试死信队列中的消息消费
 */
@SpringBootTest
public class RabbitMqTest06 {

    @Autowired
    private WorkProduct workProduct;

    @Test
    public void demo03(){

        User user = new User();
        user.setUsername("scott");
        user.setAge(20);
        workProduct.sendMsg("","hello-queue1",user);

    }
}
